home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / moni / memmin.lha / Memmin / Memmin.doc < prev    next >
Text File  |  1992-11-06  |  3KB  |  73 lines

  1.  
  2.  
  3.                             M E M M I N V1.1 
  4.  
  5.  
  6.     MEMMIN is a utility that will tell you how much memory has been used by a
  7.  program, and how much you had to spare.  Call it before the program and when
  8.  the dust has settled and the program departed you will be left with a little
  9.  window showing something like this:
  10.  
  11.           Used       Chip: 184    All: 355400
  12.           Remaining  Chip: 1896032  All: 4577314 
  13.     
  14.     Simple enough - but a little more detail . . .
  15.  
  16.     Call it from the CLI.  Just type  MEMMIN;  it detaches, so there is no need
  17.  to 'run'.  A small window will open at the top of the screen showing a low
  18.  figure at Used - taken by Memmin itself after the initial installation cost,
  19.  and your current available memory at Remaining.  The All is a total of both
  20.  chip and fast memory.
  21.  
  22.     From now on, until the window is closed, it will update its display when
  23.  ever a new demand causes the remaining memory to fall below the figure shown.
  24.  Releasing memory will not change the display, which continues to show the
  25.  maximum used at any time and minimum then remaining.  Subsequently demanding
  26.  more memory will only change the display if the new demand exceeds the size of
  27.  the release.  
  28.  
  29.     One point to remember is that it will take into account ALL memory usage,
  30.  not just that of the program that you are investigating.  Get all the screen
  31.  and window shifting and any other preparations out of the way before calling
  32.  MEMMIN.
  33.  
  34.     To clear the window and close Memmin click its CLOSEWINDOW gadget.
  35.  
  36.   
  37.   Technical (well not really)
  38.  
  39.     You will almost certainly have tried to get memory usage by watching the
  40.  display of graphics and other memory in the Workbench screen header strip,
  41.  only to find that the sampling rate is so slow that a program can call memory,
  42.  use it, and release it, without the changing figures being shown.  There are 
  43.  many good memory meter displays around, but in general if they are fast enough
  44.  to catch fleeting memory usage they are changing too fast to be read!  Hence
  45.  the need for a latching display like Memmin.
  46.  
  47.     Memmin samples every 10 millisecs;  a higher rate could very easily be used
  48.  however it has been found that no advantage is gained, and it would appear
  49.  that the registers from which available memory is read may only be updated
  50.  once per scan or 50-60 times a second.  It must be borne in mind that if a
  51.  programme holds a block of memory for less than 50 msecs (less for NTSC), this
  52.  may escape notice.   If anyone can see a way of getting round this, please
  53.  advise me. 
  54.  
  55.  
  56.       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57.  
  58.     MEMMIN is Freeware.  It may be copied and distributed freely and used
  59.  without charge for non_profit-making purposes.  Authority for profit-making  
  60.  use should be obtained from the author below.
  61.  
  62.     No responsibility can be accepted for any loss resulting from its use.
  63.  
  64.     Comments, suggestions, bug-reports all welcome.
  65.  
  66.    Chas A. Wyndham,
  67.    1265 Canning Mills Road,
  68.    Roleystone,
  69.    WA 6111.
  70.    Australia 
  71.  
  72.    
  73.